import houtaiAx from '@/utils/houtai'
export const addParams = function (cid, attrObj) {
  return houtaiAx.post(`categories/${cid}/attributes`, attrObj)
}
export const addAttr = function (pob, attrArray) {
  return houtaiAx.put(`categories/${pob.cat_id}/attributes/${pob.attr_id}`, {
    attr_name: pob.attr_name,
    attr_sel: pob.attr_sel,
    attr_vals: attrArray
  })
}
